package com.xnyzc.lhy.order.entity.system;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
*
* 订单调度司机历史表
*
* @author cuixiaojian
* @since 2019-12-05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("oa_sys_order_driver_dispatch_history")
@ApiModel(value="OaSysOrderDriverDispatchHistory对象", description="订单调度司机历史表")
public class OaSysOrderDriverDispatchHistory implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "调度ID")
    @TableId(value="dispatch_id", type = IdType.INPUT)
    private Long dispatchId;

    @ApiModelProperty(value = "司机经度")
    private String driverLng;

    @ApiModelProperty(value = "司机纬度")
    private String driverLat;

    @ApiModelProperty(value = "是否为举手司机(0 - 否 1 - 是)")
    private Integer isRaiseHandsDriver;

    @ApiModelProperty(value = "列表下表")
    private Integer listIndex;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    public static final String DISPATCH_ID = "dispatch_id";

    public static final String DRIVER_LNG = "driver_lng";

    public static final String DRIVER_LAT = "driver_lat";

    public static final String IS_RAISE_HANDS_DRIVER = "is_raise_hands_driver";

    public static final String LIST_INDEX = "list_index";

    public static final String ORDER_NO = "order_no";

    public static final String DRIVER_ID = "driver_id";
    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String TAG = "tag";

}
